package com.matt.domain;

import com.matt.commons.model.Domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/13
 * *******************************
 */
@Entity
@Data
@Table(name = "children_contract_info_record")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ChildrenContractInfoRecord extends Domain {

    @Id
    @Column(columnDefinition = "varchar(32) COMMENT 'id' ")
    private String id;

    @Column(columnDefinition = "varchar(50) COMMENT '客户id' ")
    @ApiModelProperty(value = "客户id")
    private String clienteleId;

    @Column(columnDefinition = "varchar(50) COMMENT '合同id' ")
    @ApiModelProperty(value = "合同id")
    private String contractId;

    @Column(columnDefinition = "int default 0 COMMENT  '类型0普通记录,1延长合同,2入户扣课' ")
    @ApiModelProperty(value = "类型0普通记录,1延长合同,2入户扣课")
    private Integer type;

    @Column(columnDefinition = "int default 1 COMMENT  '影响天数' ")
    @ApiModelProperty(value = "影响天数")
    private Integer effectDay;

    @Column(columnDefinition = "int default 0 COMMENT  '初始剩余延长合同天数' ")
    @ApiModelProperty(value = "初始剩余延长合同天数")
    private Integer surplusOriginalLeaveDay;

    @Column(columnDefinition = "int default 0 COMMENT  '剩余延长合同天数' ")
    @ApiModelProperty(value = "剩余延长合同天数")
    private Integer surplusLeaveDay;

    @Column(columnDefinition = "datetime default NOW() COMMENT '初始合同结束日期' ")
    @ApiModelProperty(value = "初始合同结束日期")
    private Date nurseryOriginalEndDate = new Date();

    @Column(columnDefinition = "datetime default NOW() COMMENT '合同结束日期'")
    @ApiModelProperty(value = "合同结束日期")
    private Date nurseryEndDate = new Date();

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建名称'")
    @ApiModelProperty(value = "创建名称")
    private String createdName;

    @Column(columnDefinition = "varchar(32)  COMMENT '备注'")
    @ApiModelProperty(value = "备注")
    private String remark = "";



}
